import { createApp } from 'vue'
import pinia from './stores'
import App from './App.vue'
import router from './router'
// 导入路由权限控制
import './router/permission'

// vant使用如toast这样的函数组件不能通过unplugin-vue-components自动引入样式，需要手动引入样式
import 'vant/es/toast/style'
import 'vant/es/dialog/style'
import 'vant/es/image-preview/style'
import './styles/main.scss'

// 注册图标
import 'virtual:svg-icons-register'
const app = createApp(App)

app.use(pinia)
app.use(router)

app.mount('#app')
